import request from "@/utils/request";

const api = '/user-domain/'

//获取电话号码
export async function getUserPhone(params) {
    return await request.get(api + 'user/getPhone', {params})
}

//用户列表重置密码
export async function resetPassword(params) {
    return await request.post(api + 'user/resetPassword', params)
}

//查询渠道
export async function selectChannelAll(params) {
    return await request.get(api + 'user/selectChannelAll', {params})
}

//用户列表
export async function selectCustomerUserList(params) {
    return await request.get(api + 'user/selectCustomerUserList', {params})
}

//用户列表修改用户
export async function updateUser(params) {
    return await request.post(api + 'user/updateUser', params)
}

//用户列表修改用户免审
export async function updateUsers(params) {
    return await request.post(api + 'user/updateUsers', params)
}

//导入黑名单
export async function importBlacklist(params) {
    return await request.post(api + 'blacklist/importBlacklist', params)
}

//黑名单搜索
export async function fetchBlacklist(params) {
    return await request.get(api + 'blacklist/search', {params})
}
// app认证转化率实时报表
export async function selectAuthReport(params) {
    return await request.get(api + 'user/selectAuthReport', {params})
}
// app认证转化率非实时报表
export async function selectFixedAuthReport(params) {
    return await request.get(api + 'user/selectFixedAuthReport', {params})
}

/**
 * 用户转化表
 * **/
// 查询列表
export async function userReportList(params) {
    return await request.get(api + 'buriedPoint/selectPage', {params})
}

// 查询列表
export async function userReportDetails(params) {
    return await request.get(api + 'buriedPoint/selectPageTotal', {params})
}
// 查询版本
export async function selectVersion(params) {
    return await request.get(api + 'buriedPoint/selectVersion', {params})
}

/**
 * 分时段注册报表
 */
// 查询
export async function fetchTimeShareRegisterReport(params) {
    return await request.get(api + 'report/registrationPeriodPage', {params})
}
// 合计
export async function fetchTimeShareRegisterTotal(params) {
    return await request.get(api + 'report/registrationPeriodTotal', {params})
}
